import { storage } from "@ey-utils/utils";
export const useSearchCache = (hooks: any, fc: any, params: any) => {
  const { form, path } = params;
  hooks.current = {
    handleSearch: () => {
      const values = form?.current?.values;
      storage.updateItem(path, { queryKeys: values, pageNo: 1 });
      fc(form?.current?.values, form);
    },
    ...hooks.current,
  };
};
